{*
/**
%%%copyright%%%
 *
 * FusionTicket - ticket reservation system
 * Copyright (C) 2007-2008 Christopher Jenkins. All rights reserved.
 *
 * Original Design:
 *	phpMyTicket - ticket reservation system
 * 	Copyright (C) 2004-2005 Anna Putrino, Stanislav Chachkov. All rights reserved.
 *
 * This file is part of fusionTicket.
 *
 * This file may be distributed and/or modified under the terms of the
 * "GNU General Public License" version 3 as published by the Free
 * Software Foundation and appearing in the file LICENSE included in
 * the packaging of this file.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Contact info@noctem.co.uk if any conditions of this licencing isn't 
 * clear to you.
 */
 *}
{if $smarty.get.action eq 'login'}
	{user->login username=$smarty.post.username password=$smarty.post.password uri=$smarty.post.uri}
{elseif $smarty.get.action eq 'logout'}
	{user->logout}
{/if}
{if $user->logged}
<table width='200px' border="0" cellpadding="0" cellspacing="0" class="login_table">
	<tr>
		<td class="login_title" align='center'>Member</td>
	</tr>
	<tr>
		<td class="login_content">Welcome <b>{user->user_firstname} {user->user_lastname}</b>!
			<br>
			<li><a  href='index.php?personal_page=on'>Personal Page</a></li>
			<li><a  href='index.php?action=logout'>Logout</a></li>
		</td>
	</tr>
</table>
{else}
<form method=post action=index.php?action=login style='margin-top:0px;'>
{if $smarty.get.action neq "logout"}
<input type="hidden" name="uri" value="{$smarty.server.REQUEST_URI}">
{/if}
<table width='200px' border="0" cellspacing="0" cellpadding="0" class="login_table">
	<tr>
		<td class="login_title" align='center'>Members</td>
	</tr>
	<tr>
		{$smarty.server.REQUEST_URI}
		<td class="login_content">Email Address</td>
	</tr>
	<tr>
		<td class="login_content" style='padding-left:25px;'><input type=input name=username size=20 style='font-size:10px;' ></td>
	</tr>
	<tr>
		<td  class="login_content">Password</td>
	</tr>
	<tr>
		<td class="login_content" style='padding-left:25px;'><input type=password name=password size=20 style='font-size:10px;'>&nbsp;<input type=submit value='OK' style='font-size:10px;'/></td>
	</tr>
	<tr>
		<td class="login_content">
			<li><a  href='index.php?register_user=on'>Register Here</a></li>
			<li><a  href='forgot_password.php'>Forgot your password?</a></li>			  
		</td>
	</tr>
</table>
</form>
{/if}



